package com.ytclub.oss.adpater;

import com.ytclub.oss.entity.FileInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.LinkedList;
import java.util.List;

/**
 * 阿里云的存储服务实现类
 *
 * @author: HuangQi
 * @date: Created in 22:59 2024/3/16
 * @description: 阿里云存储服务实现
 */
public class AliStorageAdapter implements StorageAdapter {


    @Override
    public void createBucket(String bucketName) {

    }

    @Override
    public void uploadFile(MultipartFile uploadFile, String bucketName, String objectName) {

    }

    @Override
    public List<String> getAllBucket() {
        List<String> bucketNameList = new LinkedList<>();
        bucketNameList.add("aliyun");
        return bucketNameList;
    }

    @Override
    public List<FileInfo> getAllFile(String bucketName) {
        return null;
    }

    @Override
    public InputStream downloadFile(String bucketName, String objectName) {
        return null;
    }

    @Override
    public void deleteBucket(String bucketName) {

    }

    @Override
    public void deleteBucket(String bucketName, String objectName) {

    }

    @Override
    public String getUrl(String bucketName, String objectName) {
        return null;
    }
}
